﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace FazaDemo.PL.Wpf
{
    class AddElementBuilder
    {

        private readonly VisualElemBuilder _elemBuilder;

        public AddElementBuilder(Grid parentGrid)
        {
            _elemBuilder = new VisualElemBuilder(parentGrid);
        }

        public void Build(string elemText, int rowIndex)
        {
            _elemBuilder.RowIndex = rowIndex;
            _elemBuilder.CreateWithContent<Label>(elemText, 0);
            _elemBuilder.Create<TextBox>("", 1);
        }

    }
}
